﻿<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    <link href="@TrialManagementTool.Helper.UrlHelper.alterContent("Content/mobile/sm-extend.min.css")" rel="stylesheet" />
    <link href="@TrialManagementTool.Helper.UrlHelper.alterContent("Content/css/common.mobile.css")" rel="stylesheet" />
    <script src="@TrialManagementTool.Helper.UrlHelper.alterContent("Scripts/mobilejs/zepto.min.js")"></script>
    <script src="@TrialManagementTool.Helper.UrlHelper.alterContent("Scripts/urlHelper.js")"></script>

    <script>
        $.config = {
            // 路由功能开关过滤器，返回 false 表示当前点击链接不使用路由
            routerFilter: function ($link) {
                // 某个区域的 a 链接不想使用路由功能
                if ($link.is('.disable-router a')) {
                    return false;
                }

                return true;
            }
        };

        function htmlEncode(value) {
            return !value ? value : String(value).replace(/&/g, "&amp;").replace(/\"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
        }

        function htmlDecode(value) {
            if (value && (value === '&nbsp;' || value === '&#160;' || (value.length === 1 && value.charCodeAt(0) === 160))) { return ""; }
            return !value ? value : String(value).replace(/&gt;/g, ">").replace(/&lt;/g, "<").replace(/&quot;/g, '"').replace(/&amp;/g, "&");
        }

        function encodeTextAreaString(str) {
            var reg = new RegExp("\n", "g");
            str = str.replace(reg, "<br/>");
            return str;
        }
        function decodeTextAreaString(str) {
            var reg = new RegExp("<br/>", "g");
            str = str.replace(reg, "\n");
            return str;
        }

        function FormatTextAreaValue(str) {
            return decodeTextAreaString(htmlDecode((str)));
        }
    </script>
</head>

<body>
    @RenderBody()

    @* <div class="page-group">

        <div class="page page-current">
          @RenderBody()
        </div>
        </div>*@
    @*<div>
            @RenderBody()
        </div>*@
    @**@
    <script src="@TrialManagementTool.Helper.UrlHelper.alterContent("Scripts/mobilejs/sm-extend.min.js")"></script>
    <script>$.init()</script>
</body>
</html>
